$OpenBSD: patch-desktop_Library_sofficeapp_mk,v 1.1 2015/05/03 11:30:33 robert Exp $
--- desktop/Library_sofficeapp.mk.orig.port	Sat May  2 23:41:52 2015
+++ desktop/Library_sofficeapp.mk	Sat May  2 23:42:19 2015
@@ -94,14 +94,14 @@ $(eval $(call gb_Library_add_exception_objects,soffice
     desktop/source/migration/migration \
 ))
 
-ifeq ($(OS),LINUX)
+ifneq (,$(filter LINUX OPENBSD,$(OS)))
 $(eval $(call gb_Library_use_static_libraries,sofficeapp,\
     glxtest \
 ))
 
 $(eval $(call gb_Library_add_libs,sofficeapp,\
 	-lm \
-	-ldl \
+	$(if $(filter LINUX,$(OS)),-ldl) \
 	-lpthread \
     -lGL \
     -lGLU \
